/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package byzantine.controls.listeners;

import byzantine.ByzantineModel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 *
 * @author Ryhan
 */
public class RemoveGeneralListener implements ActionListener {

    ByzantineModel model;

    public RemoveGeneralListener(ByzantineModel model) {
        this.model = model;
    }

    public void actionPerformed(ActionEvent event) {
        model.removeGeneral(model.getSelectedGeneral());
        model.setSelectedGeneral(null);
    }
}
